package com.stone.controller;

import com.stone.service.StockService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 库存控制器类
 * @author: zoubaolu
 * @date: 2022年06月23日 9:33
 */
@RestController
@RequestMapping("/produce")
@Slf4j
public class ProduceController {

    @Autowired
    private StockService stockService;

    @GetMapping("/function")
    public String function() {
        log.info("function");
        return "this call from producer, Hi";
    }
}
